package kr.hkit.powerjava.chapter11.work;

public class Person {
	String name;
	String ad;
	String pone;

	public Person(String name, String ad, String pone) {

		this.name = name;
		this.ad = ad;
		this.pone = pone;

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAd() {
		return ad;
	}

	public void setAd(String ad) {
		this.ad = ad;
	}

	public String getPone() {
		return pone;
	}

	public void setPone(String pone) {
		this.pone = pone;
	}

	@Override
	public String toString() {
		return "이름" + name + "주소" + ad + "전화번호" + pone;
	}

}

class Customer extends Person {

	int number;
	int mil;

	public Customer(String name, String ad, String pone, int number, int mil) {
		super(name, ad, pone);
		this.number = number;
		this.mil = mil;

	}

	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getMil() {
		return mil;
	}
	public void setMil(int mil) {
		this.mil = mil;
	}
	@Override
	public String toString() {
		return "이름 : " + name + " 주소 : " + ad + " 전화번호 : " + pone
				+ " 고객번호 : " + getNumber() + " 마일리지 : " + getMil()
				;
	}

}
